<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <title>玩家详情</title>
    <link href="/static/admin/css/public/style.css" rel="stylesheet">
    <link href="/static/admin/css/public/style-responsive.css" rel="stylesheet">
    <link href="/static/admin/css/public/loading.css" rel="stylesheet">
    <link href="/static/admin/css/player/playerInfo/playerDetailsInfo.css" rel="stylesheet">
    <script src="/static/admin/js/public/html5shiv.js"></script>
    <script src="/static/admin/js/public/numFormat.js"></script>
    <script src="/static/admin/js/public/plugs/respond.min.js"></script>
</head>

<body class="sticky-header" style="font-family: '微软雅黑';">
<!-- 页面位置 -->
<div class="page-heading">
    <ul class="breadcrumb" style="margin-top: 20px;">
        <span style="font-weight: bold;">位置：</span>
        <li>玩家管理</li>
        <li class="active"> 玩家详情 </li>
    </ul>
    <hr />
</div>
<!-- 页面位置 -->
<div class="wrapper" style="min-width: 850px;">
    <div class="row" style="margin-bottom: 88px;">
        <div class="col-sm-12">
            <section class="panel">
                <div class="panel-body">
                    <span class="fa fa-refresh fa-spin refresh" title="刷新本页" onclick="window.location.reload()"></span>
                    <span class="fa fa-arrow-circle-left return" title="返回上一页" onclick="history.go(-1)"></span>

                    <!--<button class="btn btn-sm btn-danger return" title="返回上一页" >返回</button>-->
                    <table class="table table-striped table-bordered">
                        <thead>
                        <tr>
                            <th colspan="4" style="text-align: center;">
                                玩家 <span class="nickName" style="color: #008000;"></span> 详细信息
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <th colspan="4">基本信息</th>
                        </tr>
                        <tr>
                            <td class="info_title">游戏推广号：</td>
                            <td id="tgh"></td>
                            <td class="info_title">游戏昵称：</td>
                            <td class="nickName"></td>
                        </tr>
                        <tr>
                            <td class="info_title">游戏UserID：</td>
                            <td id="userid"></td>
                            <td class="info_title">游戏登录名：</td>
                            <td id="logName"></td>
                        </tr>
                        <tr>
                            <td class="info_title">注册时间：</td>
                            <td id="regtime"></td>
                            <td class="info_title">注册IP：</td>
                            <td id="regIp"></td>
                        </tr>
                        <tr>
                            <td class="info_title">最后登陆时间：</td>
                            <td id="lastLogTime"></td>
                            <td class="info_title">最后登陆IP：</td>
                            <td id="lastLogIp"></td>
                        </tr>
                        <tr>
                            <td class="info_title">绑定手机：</td>
                            <td id="phone"></td>
                            <td class="info_title">在线时长：</td>
                            <td id="zxsc"></td>
                        </tr>
                        <tr>
                            <td class="info_title">金币：</td>
                            <td class="red" id="score"></td>
                            <td class="info_title">奖券：</td>
                            <td class="red" id="jq"></td>
                        </tr>
                        <tr>
                            <td class="info_title">总输赢：</td>
                            <td id="zsy"></td>
                            <td class="info_title">账号类型：</td>
                            <td id="zhlx"></td>
                        </tr>
                        <tr>
                            <td class="info_title">充值金额：</td>
                            <td class="red" id="cz"></td>
                            <td class="info_title">充值次数：</td>
                            <td class="red" id="czcs"></td>
                        </tr>
                        <tr>
                            <td class="info_title">是否在线：</td>
                            <td class="red" id="isonline"></td>
                            <td class="info_title">账号状态：</td>
                            <td id="state"></td>
                        </tr>
                        <tr>
                            <td class="info_title">击中话费次数：</td>
                            <td class="red" id="jzhfcs"></td>
                            <td class="info_title">击中话费金额：</td>
                            <td class="red" id="jzhfje"></td>
                        </tr>
                        <tr>
                            <td class="info_title">兑换金额：</td>
                            <td class="red" id="dhje"></td>
                            <td class="info_title">兑换次数：</td>
                            <td class="red" id="dhcs"></td>
                        </tr>
                        <tr>
                            <td class="info_title">客户端登录域名：</td>
                            <td id="khddlym"></td>
                            <td class="info_title">资源域名：</td>
                            <td id="zyym"></td>
                        </tr>
                        <tr>
                            <td class="info_title">游戏控制：</td>
                            <td id="yxkz" colspan="3"></td>
                        </tr>
                        <tr>
                            <td class="info_title">首选游戏：</td>
                            <td id="sxgame" colspan="3"></td>
                        </tr>
                        <tr>
                            <th colspan="4">数据查询操作</th>
                        </tr>
                        <tr>
                            <td></td>
                            <td colspan="3" style="padding-bottom: 15px;">
                                <button class="btn btn-sm btn-success" onclick="window.location.href='playerLoginLogList?gameid={$gameid}'">登陆记录</button>
                                <button class="btn btn-sm btn-success" onclick="window.location.href='playerGoldChangeList?gameid={$gameid}'">金币变动记录</button>
                                <button class="btn btn-sm btn-success" onclick="window.location.href='../playerChongZhiList.php?gameid={$gameid}'">充值记录</button>
                                <button class="btn btn-sm btn-success" onclick="window.location.href='playerGiftSendList.php?gameid={$gameid}'">礼物赠送记录</button>
                                <br />
                                <button class="btn btn-sm btn-success">锁定记录</button>
                                <button class="btn btn-sm btn-success">禁言记录</button>
                                <button class="btn btn-sm btn-success" onclick="window.location.href='playerLotteryChangeList.php?gameid={$gameid}'">奖券变动记录</button>
                                <button class="btn btn-sm btn-success">兑换记录</button>
                                <br />
                                <button class="btn btn-sm btn-success" onclick="window.location.href='playerDianKongList.php?gameid={$gameid}'">点控记录</button>
                                <button class="btn btn-sm btn-success" onclick="window.location.href='playerTransferRecord.php?gameid={$gameid}'">银行转账明细</button>
                                <button class="btn btn-sm btn-success" onclick="window.location.href='playerRebateRecord.php?gameid={$gameid}'">返利记录</button>
                            </td>
                        </tr>
                        <tr>
                            <th colspan="4">数据操作管理</th>
                        </tr>
                        <tr>
                            <td></td>
                            <td colspan="3" style="padding-bottom: 15px;">
                                <button class="btn btn-sm btn-success" onclick="openUpdateJbOrJqWindow(1)">增加/扣除金币</button>
                                <button class="btn btn-sm btn-success" onclick="openUpdateJbOrJqWindow(2)">增加/扣除奖券</button>

                                <!--
                            作者：842812996@qq.com
                            时间：2016-11-21
                            描述：锁定和解锁用户的按钮
                        -->
                                <span id="lockBtn"></span>

                                <button class="btn btn-sm btn-success">禁言</button>
                                <br />
                                <button class="btn btn-sm btn-success" onclick="openUpdateZblModal()">修改作弊率</button>
                                <button class="btn btn-sm btn-success" data-toggle="modal" data-target="#resetPwdModal">重置密码</button>
                                <button class="btn btn-sm btn-success">优质用户</button>
                                <button class="btn btn-sm btn-success">设置为内部员工</button>
                                <br />
                                <button class="btn btn-sm btn-success" data-toggle="modal" data-target="#updShuYingModal">修改总输赢</button>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </section>
        </div>
    </div>
</div>

<div class="sk-circle" id="load">
    <div class="sk-circle1 sk-child"></div>
    <div class="sk-circle2 sk-child"></div>
    <div class="sk-circle3 sk-child"></div>
    <div class="sk-circle4 sk-child"></div>
    <div class="sk-circle5 sk-child"></div>
    <div class="sk-circle6 sk-child"></div>
    <div class="sk-circle7 sk-child"></div>
    <div class="sk-circle8 sk-child"></div>
    <div class="sk-circle9 sk-child"></div>
    <div class="sk-circle10 sk-child"></div>
    <div class="sk-circle11 sk-child"></div>
    <div class="sk-circle12 sk-child"></div>
</div>

<!--
    修改作弊率 modal
-->
<div class="modal fade" id="updZBL" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="width: 660px;">
            <div class="modal-header">
                <h4>修改作弊率</h4>
            </div>
            <div class="modal-body">
                <table style="margin: 0 auto;">
                    <tr>
                        <td valign="top">
                            <table>
                                <tr>
                                    <td class="xhkz-td">当前输赢：</td>
                                    <td><font color="red" id="nowSY">0</font></td>
                                </tr>
                                <tr>
                                    <td class="xhkz-td">当前作弊率：</td>
                                    <td id="nowZbl">0</td>
                                </tr>
                                <tr>
                                    <td class="xhkz-td">当前作弊限额：</td>
                                    <td id="nowZbxe">0</td>
                                </tr>
                                <tr>
                                    <td class="xhkz-td">当前作弊状态：</td>
                                    <td id="nowZbzt">0</td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table style="width: 300px; margin-left: 10px;">
                                <tr>
                                    <td class="xhkz-td">新作弊率：</td>
                                    <td width="184px">
                                        <input type="text" id="newzbl" class="form-control input-sm" onkeyup="value=value.replace(/[^\-? \d]/g,''); newzblToChinese(this)">
                                    </td>
                                    <td><span class="fa fa-times" id="zblError"></span></td>
                                </tr>
                                <tr style="height: 0px;">
                                    <td></td>
                                    <td style="width: 180px;">
                                        <div class="hidenConent" id="newzblChinese" style="width: 180px; color:red;"></div>
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td class="xhkz-td">新作弊限额：</td>
                                    <td>
                                        <input type="text" id="newzbxe" class="form-control input-sm" onkeyup="value=value.replace(/[^\-? \d]/g,''); newzbxeToChinese(this)">
                                    </td>
                                    <td><span class="fa fa-times" id="zbxeError"></span></td>
                                </tr>
                                <tr style="height: 0px;">
                                    <td></td>
                                    <td style="width: 180px;">
                                        <div class="hidenConent" id="newzbxeChinese" style="width: 180px; color:red;"></div>
                                    </td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td class="xhkz-td">循环增加值：</td>
                                    <td><input class="form-control input-sm" id="xhzjz" readonly /></td>
                                    <td><span class="fa fa-times" id="xhzjzError"></span></td>
                                </tr>
                                <tr>
                                    <td class="xhkz-td">赢钱区间：</td>
                                    <td>
                                        <form class="form-inline">
                                            <input class="form-control input-sm" id="minYqqj" readonly />
                                            -
                                            <input class="form-control input-sm" id="maxYqqj" readonly />
                                        </form>
                                    </td>
                                    <td><span class="fa fa-times" id="yqqjError"></span></td>
                                </tr>
                                <tr>
                                    <td class="xhkz-td">输钱区间：</td>
                                    <td>
                                        <form class="form-inline">
                                            <input class="form-control input-sm" id="minSqqj" readonly />
                                            -
                                            <input class="form-control input-sm" id="maxSqqj" readonly />
                                        </form>
                                    </td>
                                    <td><span class="fa fa-times" id="sqqjError"></span></td>
                                </tr>
                                <tr>
                                    <td class="xhkz-td"></td>
                                    <td colspan="2">
                                        <table width="100%">
                                            <tr>
                                                <td valign="middle">
                                                    <label id="xhLabel" onclick="checkXh()" style="cursor: pointer;">
                                                        <!--
                                                            fa-check-square-o
                                                        -->
                                                        <span class="fa fa-square-o" style="width: 14px; height: 14px;"></span>&nbsp;循环
                                                        <input type="hidden" id="type" value="0" />
                                                    </label>
                                                </td>
                                                <td style="text-align: right; padding-right: 20px;">
                                                    <button class="btn btn-default btn-xs" onclick="resetZbl()">清空</button>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td valign="top">
                            <div id="fangan">
                                <span class="fa fa-spinner fa-pulse" style="position: relative; left: 0px; top: 30px;"></span>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" onclick="subUpdZBL()">修改</button>
                <button type="button" class="btn btn-danger" data-dismiss="modal" >取消</button>
            </div>
        </div>
    </div>
</div>
<!--
    增加/扣除金币 modal
    增加/扣除奖券 modal
-->
<div class="modal fade" id="updJbOrJqModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 id="updJbOrJqTitle"></h4>
            </div>
            <div class="modal-body">
                <table>
                    <tr>
                        <td class="td_title" width="140px" id="beforeUpd"></td>
                        <td width="100px">
                            <span id="nowJb">0</span>
                            <span id="nowJq">0</span>
                        </td>
                        <td class="td_title">
                            <select id="ysf" onchange="Compute()">
                                <option value="+">增加</option>
                                <option value="-">减少</option>
                            </select>
                        </td>
                        <td width="180px">
                            <input type="hidden" id="n" />
                            <input type="text" id="newValue" class="form-control input-sm" onkeyup="value=value.replace(/[^\d]/g,''); Compute();">
                        </td>
                        <td>
                            <span class="fa fa-times" id="jbError"></span>
                        </td>
                    </tr>
                    <tr style="height: 0px;">
                        <td colspan="3"></td>
                        <td style="width: 180px;">
                            <div class="hidenConent" id="ChineseNum" style="width: 180px; color:red;"></div>
                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td class="td_title" id="afterUpd">修改后金币:</td>
                        <td style="width: 100px;">
                            <div class="hidenConent" id="afterUpdJbOrJq" style="width: 100px;"></div>
                        </td>
                        <td style="padding-right: 8px; text-align: right;">操作类型:</td>
                        <td>
                            <select id="fzType" style="width: 100%;">
                                <option value="">请选择</option>
                                <option value="1">系统bug补偿</option>
                                <option value="2">活动赠送</option>
                                <option value="3">盗号问题</option>
                                <option value="4">其他</option>
                            </select>
                        </td>
                        <td><span class="fa fa-times" id="fzError"></span></td>
                    </tr>
                    <tr>
                        <td class="td_title">备注:</td>
                        <td colspan="3">
                            <textarea id="beizhu" class="form-control" maxlength="20" style="resize: none;"></textarea>
                        </td>
                        <td><span class="fa fa-times" id="bzError"></span></td>
                    </tr>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" onclick="updateJbOrJq()">修改</button>
                <button type="button" class="btn btn-danger" onclick="cannelUpdJbOrJq()" >取消</button>
            </div>
        </div>
    </div>
</div>


<!--
      修改玩家总输赢 modal
  -->
<div class="modal fade" id="updShuYingModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4>修改总输赢</h4>
            </div>
            <div class="modal-body">
                <table>
                    <tr>
                        <td class="td_title" width="140px">当前总输赢：</td>
                        <td colspan="2" style="width: 350px;">
                            <span id="nowZsy" style="color: #f00;">0</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_title">新的总输赢：</td>
                        <td>
                            <input type="text" id="zsy_newValue" class="form-control input-sm" style="width: 100%;"
                                   onkeyup="value=value.replace(/[^\-? \d]/g,''); ComputeZsy();">
                        </td>
                        <td>
                            <span class="fa fa-times" id="zsy_Error"></span>
                        </td>
                    </tr>
                    <tr style="height: 0px;">
                        <td></td>
                        <td colspan="2">
                            <div class="hidenConent" id="zsyChineseNum" style="width: 300px; color:red;"></div>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_title">操作类型：</td>
                        <td colspan="2">
                            <table>
                                <tr>
                                    <td>
                                        <select id="zsyType">
                                            <option value="">请选择</option>
                                            <option value="1">系统bug补偿</option>
                                            <option value="2">活动赠送</option>
                                            <option value="3">盗号问题</option>
                                            <option value="4">其他</option>
                                        </select>
                                    </td>
                                    <td>
                                        <span class="fa fa-times" id="zsyTypeError"></span>
                                    </td>
                                </tr>
                            </table>
                        </td>

                    </tr>
                    <tr>
                        <td class="td_title">备注：</td>
                        <td>
                            <textarea id="UpdZsyMemo" class="form-control" maxlength="20" style="resize: none;"></textarea>
                        </td>
                        <td><span class="fa fa-times" id="memoError"></span></td>
                    </tr>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" onclick="updateZsy()">修改</button>
                <button type="button" class="btn btn-danger" onclick="cannelUpdateZsy()" >取消</button>
            </div>
        </div>
    </div>
</div>
<!--
    锁定账号
    解锁账号
-->
<div class="modal fade" id="lockOrUnlockUser" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 id="lockTitle"></h4>
            </div>
            <div class="modal-body">
                <form class="form-inline form-group-sm">
                    <input type="hidden" id="lockType"/>
                    <table>
                        <tr>
                            <td>备注：</td>
                            <td><textarea class="form-control" id="memo" cols="60" rows="2" style="resize: none;" placeholder="请输入备注…"></textarea></td>
                            <td><span class="fa fa-times" id="lockError"></span></td>
                        </tr>
                    </table>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" onclick="subLockUser()" >确定</button>
                <button type="button" class="btn btn-danger" onclick="cancelLock()">取消</button>
            </div>
        </div>
    </div>
</div>

<!--
      重置密码
  -->
<div class="modal fade" id="resetPwdModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4>重置密码</h4>
            </div>
            <div class="modal-body">
                <h5>该操作不可撤销，是否确定重置该用户的密码？</h5>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" onclick="subResetPwd()" >确定</button>
                <button type="button" class="btn btn-danger" data-dismiss="modal" >取消</button>
            </div>
        </div>
    </div>
</div>

<!--
      提示框
  -->
<div class="modal fade" id="tishi" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" data-backdrop="static" data-keyboard="false" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4>提示</h4>
            </div>
            <div class="modal-body" style="text-align: center;">
                操作成功！
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" data-dismiss="modal" onclick="window.location.reload()" >确定</button>
            </div>
        </div>
    </div>
</div>
<input type="hidden" id="gamids" value="{$gameid}">
<script type="text/javascript" src="/static/admin/js/public/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/static/admin/js/public/plugs/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/admin/js/player/playerInfo/playerDetailsInfo.js"></script>
<script src="/static/admin/js/public.js"></script>
<script type="text/javascript">
    $(function(){
        var gameid=$("#gamids").val()
        loadDatas(gameid);
        isLock(gameid);
        })
</script>
</body>
</html>